package cn.tedu.reflection;
/**准备一个用于测试反射的物料类--假装是被人的代码*/
public class Student {
    public String name;
    public int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void study(int n){
        System.out.println("学他"+n+"个小时!");
    }
    public void play(){
        System.out.println("正在玩");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
